how can I do, how can I do [closed]

Posted by fatai on Stack Overflow See other posts from Stack Overflow or by fatai
Published on 2011-01-01T12:37:17Z Indexed on 2011/01/01 12:54 UTC
Read the original article Hit count: 141

Filed under:

Possible Duplicate:
arbitrary vire connection / search and replace

-input :["vire_connection",[1, 2, [ 3, [ 4, "connect"]]], ["connect", [3 , 5] ] ]
-
output:["vire_connection",[ 1, 2, [ 3, [ 4, [ 3, 5 ] ] ] ] ], [ [ 3 , 5] ] ]
-
after connection ( simply copying [3,5] to other wanted position ) , remove connect word
-
input :["vire_connection", [ [ [ ["connect", [ 3, 4 ] ] ] ] ], [ 2, "connect"]]
-
output :["vire_connection",[[[[[3,4]]]]], [ 2, [ 3 , 4 ]]]
-
after connection ( simply copying [3,4] to other wanted position ) , remove connect word
-
how can I do ?
-

© Stack Overflow or respective owner

Related posts about python